package com.songlanyun.modules.goodsuserdiscount.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.songlanyun.common.drive.IBaseService;
import com.songlanyun.common.utils.PageUtils;
import com.songlanyun.modules.goodsuserdiscount.entity.GoodsUserDiscountConfig;
import com.songlanyun.modules.goodsuserdiscount.model.dto.GoodsUserDiscountConfigDTO;

import java.util.Map;

/**
 * 商品会员折扣配置
 *
 * @author lubo
 * @email sunlightcs@gmail.com
 * @date 2020-11-13 09:54:23
 */
public interface GoodsUserDiscountConfigService extends IService<GoodsUserDiscountConfig> {
    /**
     * 给商品设置自定义的会员等级折扣
     * @param shopId
     * @param goodsId
     * @param dto
     * @return
     */
    GoodsUserDiscountConfig set(Long shopId, Long goodsId, GoodsUserDiscountConfigDTO dto);
    GoodsUserDiscountConfig getByGoodsId(Long goodsId);

}

